package com.ticket.system.mapper;

import java.util.List;
import com.ticket.system.domain.YanchuRefundOrder;
import com.ticket.system.domain.vo.CancelTicketStatVo;
import com.ticket.system.domain.vo.RefundOrderVo;
import org.apache.ibatis.annotations.Param;

/**
 * 退款单Mapper接口
 * 
 * @author ruoyi
 * @date 2023-10-31
 */
public interface YanchuRefundOrderMapper 
{
    /**
     * 查询退款单
     * 
     * @param id 退款单主键
     * @return 退款单
     */
    public YanchuRefundOrder selectYanchuRefundOrderById(Long id);
    public RefundOrderVo selectRefundOrderVoById(Long id);

    public RefundOrderVo selectRefundOrderVoByDetailId(@Param("detailId")Long detailId);

    public YanchuRefundOrder selectRefundOrderByRefundNo(@Param("refundNo") String refundNo);

    public CancelTicketStatVo cancelTicketStat(@Param("sessionId") Long sessionId);

    /**
     * 查询退款单列表
     * 
     * @param yanchuRefundOrder 退款单
     * @return 退款单集合
     */
    public List<RefundOrderVo> selectYanchuRefundOrderList(YanchuRefundOrder yanchuRefundOrder);

    /**
     * 新增退款单
     * 
     * @param yanchuRefundOrder 退款单
     * @return 结果
     */
    public int insertYanchuRefundOrder(YanchuRefundOrder yanchuRefundOrder);

    /**
     * 修改退款单
     * 
     * @param yanchuRefundOrder 退款单
     * @return 结果
     */
    public int updateYanchuRefundOrder(YanchuRefundOrder yanchuRefundOrder);

    /**
     * 删除退款单
     * 
     * @param id 退款单主键
     * @return 结果
     */
    public int deleteYanchuRefundOrderById(Long id);

    /**
     * 批量删除退款单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYanchuRefundOrderByIds(Long[] ids);
}
